package com.wtoip.core.utils;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class RedisUtil {
	
	private static ApplicationContext context = new ClassPathXmlApplicationContext("");
	
	public static void main(String[] args) {
		JedisPool jedisPool = context.getBean(JedisPool.class);
		
		Jedis jedis = jedisPool.getResource();
		
		jedis.select(0);
		
	}
	
	
}
